Optimal. Leaf size=135 \[ \frac {2 a (3 A+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d}+\frac {2 a (A-C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 a C \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {2 a C \sin (c+d x) \sqrt {\sec (c+d x)}}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 135, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {4077, 4047, 3771, 2641, 4046, 2639} \[ \frac {2 a (3 A+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d}+\frac {2 a (A-C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 a C \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {2 a C \sin (c+d x) \sqrt {\sec (c+d x)}}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 3771
Rule 4046
Rule 4047
Rule 4077
Rubi steps
\begin {align*} \int \frac {(a+a \sec (c+d x)) \left (A+C \sec ^2(c+d x)\right )}{\sqrt {\sec (c+d x)}} \, dx &=\frac {2 a C \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {2}{3} \int \frac {\frac {3 a A}{2}+\frac {1}{2} a (3 A+C) \sec (c+d x)+\frac {3}{2} a C \sec ^2(c+d x)}{\sqrt {\sec (c+d x)}} \, dx\\ &=\frac {2 a C \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {2}{3} \int \frac {\frac {3 a A}{2}+\frac {3}{2} a C \sec ^2(c+d x)}{\sqrt {\sec (c+d x)}} \, dx+\frac {1}{3} (a (3 A+C)) \int \sqrt {\sec (c+d x)} \, dx\\ &=\frac {2 a C \sqrt {\sec (c+d x)} \sin (c+d x)}{d}+\frac {2 a C \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+(a (A-C)) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx+\frac {1}{3} \left (a (3 A+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {2 a (3 A+C) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {2 a C \sqrt {\sec (c+d x)} \sin (c+d x)}{d}+\frac {2 a C \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\left (a (A-C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx\\ &=\frac {2 a (A-C) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{d}+\frac {2 a (3 A+C) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {2 a C \sqrt {\sec (c+d x)} \sin (c+d x)}{d}+\frac {2 a C \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 1.42, size = 168, normalized size = 1.24 \[ \frac {a e^{-i d x} \sec ^{\frac {3}{2}}(c+d x) (\sin (d x)-i \cos (d x)) \left ((A-C) \left (1+e^{2 i (c+d x)}\right )^{3/2} \, _2F_1\left (\frac {1}{2},\frac {3}{4};\frac {7}{4};-e^{2 i (c+d x)}\right )+2 i (3 A+C) \cos ^{\frac {3}{2}}(c+d x) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )-3 A \cos (2 (c+d x))-3 A+2 i C \sin (c+d x)+3 i C \sin (2 (c+d x))+3 C \cos (2 (c+d x))+3 C\right )}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.45, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {C a \sec \left (d x + c\right )^{3} + C a \sec \left (d x + c\right )^{2} + A a \sec \left (d x + c\right ) + A a}{\sqrt {\sec \left (d x + c\right )}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (C \sec \left (d x + c\right )^{2} + A\right )} {\left (a \sec \left (d x + c\right ) + a\right )}}{\sqrt {\sec \left (d x + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 10.09, size = 437, normalized size = 3.24 \[ -\frac {a \sqrt {-\left (-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (\frac {2 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \left (\EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-\EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right )}{\sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}}+\frac {2 C \left (-\sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+2 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}{\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \left (2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right )}+2 C \left (-\frac {\cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}}{6 \left (-\frac {1}{2}+\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}+\frac {\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )}{3 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}}\right )\right )}{\sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (C \sec \left (d x + c\right )^{2} + A\right )} {\left (a \sec \left (d x + c\right ) + a\right )}}{\sqrt {\sec \left (d x + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\left (A+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )\,\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}{\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ a \left (\int \frac {A}{\sqrt {\sec {\left (c + d x \right )}}}\, dx + \int A \sqrt {\sec {\left (c + d x \right )}}\, dx + \int C \sec ^{\frac {3}{2}}{\left (c + d x \right )}\, dx + \int C \sec ^{\frac {5}{2}}{\left (c + d x \right )}\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________